class commonFunction {
    constructor(code,data,message) {
        this.code = code
        this.data = data
        this.message = message
    }
    TokenFail(message = '未找到token' ) {
        return new commonFunction('0',[],message)
    }
    sendSuccess(data,message) {
        return new commonFunction('1',data,message);
    }
}

module.exports = new commonFunction()